package com.alibaba.cloud.ai.example.graph.basic_chatbot;

import org.bsc.langgraph4j.RunnableConfig;
import org.bsc.langgraph4j.checkpoint.BaseCheckpointSaver;
import org.bsc.langgraph4j.checkpoint.Checkpoint;

import java.util.Collection;
import java.util.HashSet;
import java.util.Optional;

/**
 * @author ming（fuyou.lxm）
 * @version 1.0
 * @date 2025/1/20 16:55
 */
public class BlankSaver implements BaseCheckpointSaver {
    @Override
    public Collection<Checkpoint> list(RunnableConfig config) {
        return new HashSet<>();
    }

    @Override
    public Optional<Checkpoint> get(RunnableConfig config) {
        return Optional.empty();
    }

    @Override
    public RunnableConfig put(RunnableConfig config, Checkpoint checkpoint) {
        return config;
    }
}
